@mixin clearfix {
    &:after {
        content: "";
        display: table;
        clear: both;
    }
}

@mixin scrollBar {
    &::-webkit-scrollbar-track-piece {
        background: #d3dce6;
    }
    &::-webkit-scrollbar {
        width: 6px;
    }
    &::-webkit-scrollbar-thumb {
        background: #99a9bf;
        border-radius: 20px;
    }
}

@mixin scroll-bar {
    &::-webkit-scrollbar {
        width: 6px;
        height: 6px;
        display: block;
        background: transparent !important;
    }
    &::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track {
        border-radius: 3px;
        box-shadow: none;
    }
    &::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, .15);
    }
    &::-webkit-scrollbar-track {
        width: 6px;
        height: 6px;
        background: transparent !important;
    }
}

// 透明滚动条
@mixin scroll-bar-transparent {
    &::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
        background: transparent !important;
    }
    &::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track {
        border-radius: 0;
        box-shadow: none;
    }
    &::-webkit-scrollbar-thumb {
        background: transparent;
    }
    &::-webkit-scrollbar-track {
        width: 0;
        height: 0;
        background: transparent !important;
    }
}

@mixin relative {
    position: relative;
    width: 100%;
    height: 100%;
}

